/**
 * 职务表 api 封装
 */
import { postRequest, getRequest } from '/@/lib/axios';

export const positionApi = {

  /**
   * 分页查询
   */
  queryPage: (param) => {
    return postRequest('/sys/position/queryPage', param);
  },

  /**
   * 增加
   */
  add: (param) => {
    return postRequest('/sys/position/add', param);
  },

  /**
   * 修改
   */
  update: (param) => {
    return postRequest('/sys/position/update', param);
  },


  /**
   * 删除
   */
  delete: (id) => {
    return getRequest(`/sys/position/delete/${id}`);
  },

  /**
   * 批量删除
   */
  batchDelete: (idList) => {
    return postRequest('/sys/position/batchDelete', idList);
  },

  /**
   * 查询列表
   */
  queryList: () => {
    return getRequest('/sys/position/queryList');
  }
};
